home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / OCEStandardMail.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  27.3 KB  |  962 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        OCEStandardMail.a
  3. ;
  4. ;    Contains:    Apple Open Collaboration Environment Standard Mail Interfaces.
  5. ;
  6. ;    Version:    Technology:    AOCE Toolbox 1.02
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__OCESTANDARDMAIL__') = 'UNDEFINED' THEN
  19. __OCESTANDARDMAIL__ SET 1
  20.  
  21.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  22.     include 'AppleEvents.a'
  23.     ENDIF
  24.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  25.     include 'Dialogs.a'
  26.     ENDIF
  27.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  28.     include 'Files.a'
  29.     ENDIF
  30.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  31.     include 'Quickdraw.a'
  32.     ENDIF
  33.  
  34.     IF &TYPE('__OCEAUTHDIR__') = 'UNDEFINED' THEN
  35.     include 'OCEAuthDir.a'
  36.     ENDIF
  37.     IF &TYPE('__OCEMAIL__') = 'UNDEFINED' THEN
  38.     include 'OCEMail.a'
  39.     ENDIF
  40.  
  41.  
  42. kSMPVersion                        EQU        1
  43.  
  44. kSMPNativeFormatName            EQU        'natv'
  45. LetterSpec                RECORD 0
  46. spec                     ds.l    3                ; offset: $0 (0)
  47. sizeof                     EQU *                    ; size:   $C (12)
  48.                         ENDR
  49.  
  50. typeLetterSpec                    EQU        'lttr'
  51. ;     Wildcard used for filtering letter types. 
  52.  
  53. FilterAnyLetter                    EQU        'ltr*'
  54. FilterAppleLetterContent        EQU        'ltc*'
  55. FilterImageContent                EQU        'lti*'
  56.  
  57. LetterDescriptor        RECORD 0
  58. onDisk                     ds.b    1                ; offset: $0 (0)
  59. filler1                     ds.b    1                ; offset: $1 (1)
  60. fileSpec                 ds        FSSpec            ; offset: $2 (2)
  61.                          ORG 2
  62. mailboxSpec                 ds        LetterSpec        ; offset: $2 (2)
  63.                          ORG 72
  64. sizeof                     EQU *                    ; size:   $48 (72)
  65.                         ENDR
  66. ;SMPPSendAs values.  You may add the following values together to determine how the
  67. ;file is sent, but you may not set both kSMPSendAsEnclosureMask and kSMPSendFileOnlyMask.  This
  68. ;will allow you to send the letter as an image so that it will work with fax gateways
  69. ;and send as an enclosure as well.
  70. ;
  71.  
  72.  
  73. kSMPSendAsEnclosureBit            EQU        0                    ; Appears as letter with enclosures 
  74. kSMPSendFileOnlyBit                EQU        1                    ; Appears as a file in mailbox. 
  75. kSMPSendAsImageBit                EQU        2                    ; Content imaged in letter 
  76. ;  Values of SMPPSendAs 
  77.  
  78. kSMPSendAsEnclosureMask            EQU        $01
  79. kSMPSendFileOnlyMask            EQU        $02
  80. kSMPSendAsImageMask                EQU        $04
  81. ; typedef Byte                             SMPPSendAs
  82.  
  83. ;  Send Package Structures 
  84. SMPRecipientDescriptor    RECORD 0
  85. next                     ds.l    1                ; offset: $0 (0)        ;   Q-Link. 
  86. result                     ds.w    1                ; offset: $4 (4)        ;   result code when using the object. 
  87. recipient                 ds.l    1                ; offset: $6 (6)        ;   Pointer to a Packed Address. 
  88. size                     ds.l    1                ; offset: $A (10)        ;   length of recipient in bytes. 
  89. theAddress                 ds        MailRecipient    ; offset: $E (14)        ;   structure points into recipient and theRID. 
  90. theRID                     ds        RecordID        ; offset: $1C (28)        ;   structure points into recipient. 
  91. sizeof                     EQU *                    ; size:   $30 (48)
  92.                         ENDR
  93. ; typedef struct SMPRecipientDescriptor * SMPRecipientDescriptorPtr
  94.  
  95. SMPEnclosureDescriptor    RECORD 0
  96. next                     ds.l    1                ; offset: $0 (0)
  97. result                     ds.w    1                ; offset: $4 (4)
  98. fileSpec                 ds        FSSpec            ; offset: $6 (6)
  99. fileCreator                 ds.l    1                ; offset: $4C (76)        ;   Creator of this enclosure. 
  100. fileType                 ds.l    1                ; offset: $50 (80)        ;   File Type of this enclosure. 
  101. sizeof                     EQU *                    ; size:   $54 (84)
  102.                         ENDR
  103. ; typedef struct SMPEnclosureDescriptor * SMPEnclosureDescriptorPtr
  104.  
  105. SMPLetterPB                RECORD 0
  106. result                     ds.w    1                ; offset: $0 (0)        ;  result of operation 
  107. subject                     ds.l    1                ; offset: $2 (2)        ;  RString 
  108. senderIdentity             ds.l    1                ; offset: $6 (6)        ;  Letter is sent from this Identity 
  109. toList                     ds.l    1                ; offset: $A (10)        ;  Pointer to linked list 
  110. ccList                     ds.l    1                ; offset: $E (14)        ;  Pointer to linked list 
  111. bccList                     ds.l    1                ; offset: $12 (18)        ;  Pointer to linked list 
  112. script                     ds.w    1                ; offset: $16 (22)        ;  Identifier for language 
  113. textSize                 ds.l    1                ; offset: $18 (24)        ;  length of body data 
  114. textBuffer                 ds.l    1                ; offset: $1C (28)        ;  body of the letter 
  115. sendAs                     ds.b    1                ; offset: $20 (32)        ;  Send as Letter,Enclosure,Image 
  116. padByte                     ds.b    1                ; offset: $21 (33)
  117. enclosures                 ds.l    1                ; offset: $22 (34)        ;  files to be enclosed 
  118. drawImageProc             ds.l    1                ; offset: $26 (38)        ;  For imaging 
  119. imageRefCon                 ds.l    1                ; offset: $2A (42)        ;  For imaging 
  120. supportsColor             ds.b    1                ; offset: $2E (46)        ;  For imaging - set to true if you application supports color imaging 
  121. filler1                     ds.b    1                ; offset: $2F (47)
  122. sizeof                     EQU *                    ; size:   $30 (48)
  123.                         ENDR
  124. ; typedef struct SMPLetterPB *            SMPLetterPBPtr
  125.  
  126.  
  127. kSMPAppMustHandleEventBit        EQU        0
  128. kSMPAppShouldIgnoreEventBit        EQU        1
  129. kSMPContractedBit                EQU        2
  130. kSMPExpandedBit                    EQU        3
  131. kSMPMailerBecomesTargetBit        EQU        4
  132. kSMPAppBecomesTargetBit            EQU        5
  133. kSMPCursorOverMailerBit            EQU        6
  134. kSMPCreateCopyWindowBit            EQU        7
  135. kSMPDisposeCopyWindowBit        EQU        8
  136. ;  Values of SMPMailerResult 
  137.  
  138. kSMPAppMustHandleEventMask        EQU        $01
  139. kSMPAppShouldIgnoreEventMask    EQU        $02
  140. kSMPContractedMask                EQU        $04
  141. kSMPExpandedMask                EQU        $08
  142. kSMPMailerBecomesTargetMask        EQU        $10
  143. kSMPAppBecomesTargetMask        EQU        $20
  144. kSMPCursorOverMailerMask        EQU        $40
  145. kSMPCreateCopyWindowMask        EQU        $80
  146. kSMPDisposeCopyWindowMask        EQU        $0100
  147. ; typedef unsigned long                 SMPMailerResult
  148.  
  149. ;  Values of SMPMailerComponent
  150.  
  151. kSMPOther                        EQU        -1
  152. kSMPFrom                        EQU        32
  153. kSMPTo                            EQU        20
  154. kSMPRegarding                    EQU        22
  155. kSMPSendDateTime                EQU        29
  156. kSMPAttachments                    EQU        26
  157. kSMPAddressOMatic                EQU        16
  158. ; typedef unsigned long                 SMPMailerComponent
  159.  
  160.  
  161.  
  162. kSMPToAddress                    EQU        13
  163. kSMPCCAddress                    EQU        14
  164. kSMPBCCAddress                    EQU        15
  165. ; typedef MailAttributeID                 SMPAddressType
  166.  
  167.  
  168.  
  169. kSMPUndoCommand                    EQU        0
  170. kSMPCutCommand                    EQU        1
  171. kSMPCopyCommand                    EQU        2
  172. kSMPPasteCommand                EQU        3
  173. kSMPClearCommand                EQU        4
  174. kSMPSelectAllCommand            EQU        5
  175. ; typedef unsigned short                 SMPEditCommand
  176.  
  177.  
  178. kSMPUndoDisabled                EQU        0
  179. kSMPAppMayUndo                    EQU        1
  180. kSMPMailerUndo                    EQU        2
  181. ; typedef unsigned short                 SMPUndoState
  182.  
  183. ;SMPSendFormatMask:
  184. ;
  185. ;Bitfield indicating which combinations of formats are included in,
  186. ;should be included or, or can be included in a letter.
  187. ;
  188.  
  189.  
  190. kSMPNativeBit                    EQU        0
  191. kSMPImageBit                    EQU        1
  192. kSMPStandardInterchangeBit        EQU        2
  193. ;  Values of SMPSendFormatMask 
  194.  
  195. kSMPNativeMask                    EQU        $01
  196. kSMPImageMask                    EQU        $02
  197. kSMPStandardInterchangeMask        EQU        $04
  198. ; typedef unsigned long                 SMPSendFormatMask
  199.  
  200.  
  201. ;    Pseudo-events passed to the clients filter proc for initialization and cleanup.
  202. ;
  203.  
  204.  
  205. kSMPSendOptionsStart            EQU        -1
  206. kSMPSendOptionsEnd                EQU        -2
  207.  
  208. ;SMPSendFormatMask:
  209. ;
  210. ;Structure describing the format of a letter.  If kSMPNativeMask bit is set, the whichNativeFormat field indicates which of the client-defined formats to use.
  211. ;
  212.  
  213.  
  214. SMPSendFormat            RECORD 0
  215. whichFormats             ds.l    1                ; offset: $0 (0)
  216. whichNativeFormat         ds.w    1                ; offset: $4 (4)        ;  0 based 
  217. sizeof                     EQU *                    ; size:   $6 (6)
  218.                         ENDR
  219.  
  220.  
  221. SMPLetterInfo            RECORD 0
  222. letterCreator             ds.l    1                ; offset: $0 (0)
  223. letterType                 ds.l    1                ; offset: $4 (4)
  224. subject                     ds        RString32        ; offset: $8 (8)
  225. sender                     ds        RString32        ; offset: $2C (44)
  226. sizeof                     EQU *                    ; size:   $50 (80)
  227.                         ENDR
  228.  
  229.  
  230. kSMPSave                        EQU        0
  231. kSMPSaveAs                        EQU        1
  232. kSMPSaveACopy                    EQU        2
  233. ; typedef unsigned short                 SMPSaveType
  234.  
  235. SMPMailerState            RECORD 0
  236. mailerCount                 ds.w    1                ; offset: $0 (0)
  237. currentMailer             ds.w    1                ; offset: $2 (2)
  238. upperLeft                 ds        Point            ; offset: $4 (4)
  239. hasBeenReceived             ds.b    1                ; offset: $8 (8)
  240. isTarget                 ds.b    1                ; offset: $9 (9)
  241. isExpanded                 ds.b    1                ; offset: $A (10)
  242. canMoveToTrash             ds.b    1                ; offset: $B (11)
  243. canTag                     ds.b    1                ; offset: $C (12)
  244. padByte2                 ds.b    1                ; offset: $D (13)
  245. changeCount                 ds.l    1                ; offset: $E (14)
  246. targetComponent             ds.l    1                ; offset: $12 (18)
  247. canCut                     ds.b    1                ; offset: $16 (22)
  248. canCopy                     ds.b    1                ; offset: $17 (23)
  249. canPaste                 ds.b    1                ; offset: $18 (24)
  250. canClear                 ds.b    1                ; offset: $19 (25)
  251. canSelectAll             ds.b    1                ; offset: $1A (26)
  252. padByte3                 ds.b    1                ; offset: $1B (27)
  253. undoState                 ds.w    1                ; offset: $1C (28)
  254. undoWhat                 ds        Str63            ; offset: $1E (30)
  255. sizeof                     EQU *                    ; size:   $5E (94)
  256.                         ENDR
  257.  
  258. SMPSendOptions            RECORD 0
  259. signWhenSent             ds.b    1                ; offset: $0 (0)
  260. priority                 ds.b    1                ; offset: $1 (1)
  261. sizeof                     EQU *                    ; size:   $2 (2)
  262.                         ENDR
  263. ; typedef struct SMPSendOptions *        SMPSendOptionsPtr
  264.  
  265. ; typedef SMPSendOptionsPtr *            SMPSendOptionsHandle
  266.  
  267.  
  268. SMPCloseOptions            RECORD 0
  269. moveToTrash                 ds.b    1                ; offset: $0 (0)
  270. addTag                     ds.b    1                ; offset: $1 (1)
  271. tag                         ds        RString32        ; offset: $2 (2)
  272. sizeof                     EQU *                    ; size:   $26 (38)
  273.                         ENDR
  274. ; typedef struct SMPCloseOptions *        SMPCloseOptionsPtr
  275.  
  276.  
  277. ; ----------------------------------------------------------------------------------------
  278. ;    Send Package Routines
  279. ;----------------------------------------------------------------------------------------
  280.  
  281. ;
  282. ; pascal OSErr SMPSendLetter(SMPLetterPBPtr theLetter)
  283. ;
  284.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  285.         Macro
  286.         _SMPSendLetter
  287.             move.l              #$000201F4,D0
  288.             dc.w                $AA5D
  289.         EndM
  290.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  291.         IMPORT_CFM_FUNCTION SMPSendLetter
  292.     ENDIF
  293.  
  294. ;
  295. ; pascal OSErr SMPNewPage(OpenCPicParams *newHeader)
  296. ;
  297.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  298.         Macro
  299.         _SMPNewPage
  300.             move.l              #$00020834,D0
  301.             dc.w                $AA5D
  302.         EndM
  303.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  304.         IMPORT_CFM_FUNCTION SMPNewPage
  305.     ENDIF
  306.  
  307. ;
  308. ; pascal OSErr SMPImageErr(void )
  309. ;
  310.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  311.         Macro
  312.         _SMPImageErr
  313.             move.l              #$00000835,D0
  314.             dc.w                $AA5D
  315.         EndM
  316.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  317.         IMPORT_CFM_FUNCTION SMPImageErr
  318.     ENDIF
  319.  
  320. ;
  321. ; pascal OSErr SMPResolveToRecipient(PackedDSSpecPtr dsSpec, SMPRecipientDescriptorPtr *recipientList, AuthIdentity identity)
  322. ;
  323.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  324.         Macro
  325.         _SMPResolveToRecipient
  326.             move.l              #$0006044C,D0
  327.             dc.w                $AA5D
  328.         EndM
  329.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  330.         IMPORT_CFM_FUNCTION SMPResolveToRecipient
  331.     ENDIF
  332.  
  333.  
  334.  
  335. ;
  336. ; pascal OSErr SMPInitMailer(long mailerVersion)
  337. ;
  338.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  339.         Macro
  340.         _SMPInitMailer
  341.             move.l              #$00021285,D0
  342.             dc.w                $AA5D
  343.         EndM
  344.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  345.         IMPORT_CFM_FUNCTION SMPInitMailer
  346.     ENDIF
  347.  
  348. ;
  349. ; pascal OSErr SMPGetDimensions(short *width, short *contractedHeight, short *expandedHeight)
  350. ;
  351.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  352.         Macro
  353.         _SMPGetDimensions
  354.             move.l              #$0006125C,D0
  355.             dc.w                $AA5D
  356.         EndM
  357.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  358.         IMPORT_CFM_FUNCTION SMPGetDimensions
  359.     ENDIF
  360.  
  361. ;
  362. ; pascal OSErr SMPGetTabInfo(SMPMailerComponent *firstTab, SMPMailerComponent *lastTab)
  363. ;
  364.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  365.         Macro
  366.         _SMPGetTabInfo
  367.             move.l              #$00041274,D0
  368.             dc.w                $AA5D
  369.         EndM
  370.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  371.         IMPORT_CFM_FUNCTION SMPGetTabInfo
  372.     ENDIF
  373.  
  374. ;
  375. ; pascal OSErr SMPNewMailer(WindowPtr window, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, AuthIdentity identity, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  376. ;
  377.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  378.         Macro
  379.         _SMPNewMailer
  380.             move.l              #$000C125D,D0
  381.             dc.w                $AA5D
  382.         EndM
  383.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  384.         IMPORT_CFM_FUNCTION SMPNewMailer
  385.     ENDIF
  386.  
  387. ;
  388. ; pascal OSErr SMPPrepareToClose(WindowPtr window)
  389. ;
  390.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  391.         Macro
  392.         _SMPPrepareToClose
  393.             move.l              #$00021287,D0
  394.             dc.w                $AA5D
  395.         EndM
  396.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  397.         IMPORT_CFM_FUNCTION SMPPrepareToClose
  398.     ENDIF
  399.  
  400. ;
  401. ; pascal OSErr SMPCloseOptionsDialog(WindowPtr window, SMPCloseOptionsPtr closeOptions)
  402. ;
  403.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  404.         Macro
  405.         _SMPCloseOptionsDialog
  406.             move.l              #$00041288,D0
  407.             dc.w                $AA5D
  408.         EndM
  409.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  410.         IMPORT_CFM_FUNCTION SMPCloseOptionsDialog
  411.     ENDIF
  412.  
  413. ;
  414. ; pascal OSErr SMPTagDialog(WindowPtr window, RString32 *theTag)
  415. ;
  416.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  417.         Macro
  418.         _SMPTagDialog
  419.             move.l              #$0004128B,D0
  420.             dc.w                $AA5D
  421.         EndM
  422.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  423.         IMPORT_CFM_FUNCTION SMPTagDialog
  424.     ENDIF
  425.  
  426. ;
  427. ; pascal OSErr SMPDisposeMailer(WindowPtr window, SMPCloseOptionsPtr closeOptions)
  428. ;
  429.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  430.         Macro
  431.         _SMPDisposeMailer
  432.             move.l              #$0004125E,D0
  433.             dc.w                $AA5D
  434.         EndM
  435.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  436.         IMPORT_CFM_FUNCTION SMPDisposeMailer
  437.     ENDIF
  438.  
  439. ;
  440. ; pascal OSErr SMPMailerEvent(const EventRecord *event, SMPMailerResult *whatHappened, FrontWindowUPP frontWindowCB, long clientData)
  441. ;
  442.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  443.         Macro
  444.         _SMPMailerEvent
  445.             move.l              #$0008125F,D0
  446.             dc.w                $AA5D
  447.         EndM
  448.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  449.         IMPORT_CFM_FUNCTION SMPMailerEvent
  450.     ENDIF
  451.  
  452. ;
  453. ; pascal OSErr SMPClearUndo(WindowPtr window)
  454. ;
  455.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  456.         Macro
  457.         _SMPClearUndo
  458.             move.l              #$00021275,D0
  459.             dc.w                $AA5D
  460.         EndM
  461.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  462.         IMPORT_CFM_FUNCTION SMPClearUndo
  463.     ENDIF
  464.  
  465. ;
  466. ; pascal OSErr SMPMailerEditCommand(WindowPtr window, SMPEditCommand command, SMPMailerResult *whatHappened)
  467. ;
  468.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  469.         Macro
  470.         _SMPMailerEditCommand
  471.             move.l              #$00051260,D0
  472.             dc.w                $AA5D
  473.         EndM
  474.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  475.         IMPORT_CFM_FUNCTION SMPMailerEditCommand
  476.     ENDIF
  477.  
  478. ;
  479. ; pascal OSErr SMPMailerForward(WindowPtr window, AuthIdentity from)
  480. ;
  481.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  482.         Macro
  483.         _SMPMailerForward
  484.             move.l              #$00041261,D0
  485.             dc.w                $AA5D
  486.         EndM
  487.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  488.         IMPORT_CFM_FUNCTION SMPMailerForward
  489.     ENDIF
  490.  
  491. ;
  492. ; pascal OSErr SMPMailerReply(WindowPtr originalLetter, WindowPtr newLetter, Boolean replyToAll, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, AuthIdentity identity, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  493. ;
  494.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  495.         Macro
  496.         _SMPMailerReply
  497.             move.l              #$000F1262,D0
  498.             dc.w                $AA5D
  499.         EndM
  500.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  501.         IMPORT_CFM_FUNCTION SMPMailerReply
  502.     ENDIF
  503.  
  504. ;
  505. ; pascal OSErr SMPGetMailerState(WindowPtr window, SMPMailerState *itsState)
  506. ;
  507.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  508.         Macro
  509.         _SMPGetMailerState
  510.             move.l              #$00041263,D0
  511.             dc.w                $AA5D
  512.         EndM
  513.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  514.         IMPORT_CFM_FUNCTION SMPGetMailerState
  515.     ENDIF
  516.  
  517. ;
  518. ; pascal OSErr SMPSendOptionsDialog(WindowPtr window, Str255 documentName, StringPtr nativeFormatNames[2147483647], unsigned short nameCount, SMPSendFormatMask canSend, SMPSendFormat *currentFormat, SendOptionsFilterUPP filterProc, long clientData, SMPSendFormat *shouldSend, SMPSendOptionsPtr sendOptions)
  519. ;
  520.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  521.         Macro
  522.         _SMPSendOptionsDialog
  523.             move.l              #$00131388,D0
  524.             dc.w                $AA5D
  525.         EndM
  526.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  527.         IMPORT_CFM_FUNCTION SMPSendOptionsDialog
  528.     ENDIF
  529.  
  530.  
  531. ;
  532. ; pascal OSErr SMPPrepareCoverPages(WindowPtr window, short *pageCount)
  533. ;
  534.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  535.         Macro
  536.         _SMPPrepareCoverPages
  537.             move.l              #$00041264,D0
  538.             dc.w                $AA5D
  539.         EndM
  540.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  541.         IMPORT_CFM_FUNCTION SMPPrepareCoverPages
  542.     ENDIF
  543.  
  544. ;
  545. ; pascal OSErr SMPDrawNthCoverPage(WindowPtr window, short pageNumber, Boolean doneDrawingCoverPages)
  546. ;
  547.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  548.         Macro
  549.         _SMPDrawNthCoverPage
  550.             move.l              #$00041265,D0
  551.             dc.w                $AA5D
  552.         EndM
  553.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  554.         IMPORT_CFM_FUNCTION SMPDrawNthCoverPage
  555.     ENDIF
  556.  
  557. ;
  558. ; pascal OSErr SMPPrepareToChange(WindowPtr window)
  559. ;
  560.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  561.         Macro
  562.         _SMPPrepareToChange
  563.             move.l              #$00021289,D0
  564.             dc.w                $AA5D
  565.         EndM
  566.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  567.         IMPORT_CFM_FUNCTION SMPPrepareToChange
  568.     ENDIF
  569.  
  570. ;
  571. ; pascal OSErr SMPContentChanged(WindowPtr window)
  572. ;
  573.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  574.         Macro
  575.         _SMPContentChanged
  576.             move.l              #$0002126F,D0
  577.             dc.w                $AA5D
  578.         EndM
  579.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  580.         IMPORT_CFM_FUNCTION SMPContentChanged
  581.     ENDIF
  582.  
  583. ;
  584. ; pascal OSErr SMPBeginSave(WindowPtr window, const FSSpec *diskLetter, OSType creator, OSType fileType, SMPSaveType saveType, Boolean *mustAddContent)
  585. ;
  586.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  587.         Macro
  588.         _SMPBeginSave
  589.             move.l              #$000B1266,D0
  590.             dc.w                $AA5D
  591.         EndM
  592.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  593.         IMPORT_CFM_FUNCTION SMPBeginSave
  594.     ENDIF
  595.  
  596. ;
  597. ; pascal OSErr SMPEndSave(WindowPtr window, Boolean okToSave)
  598. ;
  599.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  600.         Macro
  601.         _SMPEndSave
  602.             move.l              #$00031270,D0
  603.             dc.w                $AA5D
  604.         EndM
  605.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  606.         IMPORT_CFM_FUNCTION SMPEndSave
  607.     ENDIF
  608.  
  609. ;
  610. ; pascal OSErr SMPBeginSend(WindowPtr window, OSType creator, OSType fileType, SMPSendOptionsPtr sendOptions, Boolean *mustAddContent)
  611. ;
  612.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  613.         Macro
  614.         _SMPBeginSend
  615.             move.l              #$000A1267,D0
  616.             dc.w                $AA5D
  617.         EndM
  618.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  619.         IMPORT_CFM_FUNCTION SMPBeginSend
  620.     ENDIF
  621.  
  622. ;
  623. ; pascal OSErr SMPEndSend(WindowPtr window, Boolean okToSend)
  624. ;
  625.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  626.         Macro
  627.         _SMPEndSend
  628.             move.l              #$00031271,D0
  629.             dc.w                $AA5D
  630.         EndM
  631.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  632.         IMPORT_CFM_FUNCTION SMPEndSend
  633.     ENDIF
  634.  
  635. ;
  636. ; pascal OSErr SMPOpenLetter(const LetterDescriptor *letter, WindowPtr window, Point upperLeft, Boolean canContract, Boolean initiallyExpanded, PrepareMailerForDrawingUPP prepareMailerForDrawingCB, long clientData)
  637. ;
  638.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  639.         Macro
  640.         _SMPOpenLetter
  641.             move.l              #$000C1268,D0
  642.             dc.w                $AA5D
  643.         EndM
  644.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  645.         IMPORT_CFM_FUNCTION SMPOpenLetter
  646.     ENDIF
  647.  
  648. ;
  649. ; pascal OSErr SMPAddMainEnclosure(WindowPtr window, const FSSpec *enclosure)
  650. ;
  651.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  652.         Macro
  653.         _SMPAddMainEnclosure
  654.             move.l              #$0004127D,D0
  655.             dc.w                $AA5D
  656.         EndM
  657.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  658.         IMPORT_CFM_FUNCTION SMPAddMainEnclosure
  659.     ENDIF
  660.  
  661. ;
  662. ; pascal OSErr SMPGetMainEnclosureFSSpec(WindowPtr window, FSSpec *enclosureDir)
  663. ;
  664.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  665.         Macro
  666.         _SMPGetMainEnclosureFSSpec
  667.             move.l              #$0004127E,D0
  668.             dc.w                $AA5D
  669.         EndM
  670.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  671.         IMPORT_CFM_FUNCTION SMPGetMainEnclosureFSSpec
  672.     ENDIF
  673.  
  674. ;
  675. ; pascal OSErr SMPAddContent(WindowPtr window, MailSegmentType segmentType, Boolean appendFlag, void *buffer, unsigned long bufferSize, StScrpRec *textScrap, Boolean startNewScript, ScriptCode script)
  676. ;
  677.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  678.         Macro
  679.         _SMPAddContent
  680.             move.l              #$000C127A,D0
  681.             dc.w                $AA5D
  682.         EndM
  683.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  684.         IMPORT_CFM_FUNCTION SMPAddContent
  685.     ENDIF
  686.  
  687. ;
  688. ; pascal OSErr SMPReadContent(WindowPtr window, MailSegmentMask segmentTypeMask, void *buffer, unsigned long bufferSize, unsigned long *dataSize, StScrpRec *textScrap, ScriptCode *script, MailSegmentType *segmentType, Boolean *endOfScript, Boolean *endOfSegment, Boolean *endOfContent, long *segmentLength, long *segmentID)
  689. ;
  690.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  691.         Macro
  692.         _SMPReadContent
  693.             move.l              #$0019127B,D0
  694.             dc.w                $AA5D
  695.         EndM
  696.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  697.         IMPORT_CFM_FUNCTION SMPReadContent
  698.     ENDIF
  699.  
  700. ;
  701. ; pascal OSErr SMPGetFontNameFromLetter(WindowPtr window, short fontNum, Str255 fontName, Boolean doneWithFontTable)
  702. ;
  703.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  704.         Macro
  705.         _SMPGetFontNameFromLetter
  706.             move.l              #$0006127C,D0
  707.             dc.w                $AA5D
  708.         EndM
  709.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  710.         IMPORT_CFM_FUNCTION SMPGetFontNameFromLetter
  711.     ENDIF
  712.  
  713. ;
  714. ; pascal OSErr SMPAddBlock(WindowPtr window, const OCECreatorType *blockType, Boolean append, void *buffer, unsigned long bufferSize, MailBlockMode mode, unsigned long offset)
  715. ;
  716.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  717.         Macro
  718.         _SMPAddBlock
  719.             move.l              #$000C127F,D0
  720.             dc.w                $AA5D
  721.         EndM
  722.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  723.         IMPORT_CFM_FUNCTION SMPAddBlock
  724.     ENDIF
  725.  
  726. ;
  727. ; pascal OSErr SMPReadBlock(WindowPtr window, const OCECreatorType *blockType, unsigned short blockIndex, void *buffer, unsigned long bufferSize, unsigned long dataOffset, unsigned long *dataSize, Boolean *endOfBlock, unsigned long *remaining)
  728. ;
  729.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  730.         Macro
  731.         _SMPReadBlock
  732.             move.l              #$00111280,D0
  733.             dc.w                $AA5D
  734.         EndM
  735.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  736.         IMPORT_CFM_FUNCTION SMPReadBlock
  737.     ENDIF
  738.  
  739. ;
  740. ; pascal OSErr SMPEnumerateBlocks(WindowPtr window, unsigned short startIndex, void *buffer, unsigned long bufferSize, unsigned long *dataSize, unsigned short *nextIndex, Boolean *more)
  741. ;
  742.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  743.         Macro
  744.         _SMPEnumerateBlocks
  745.             move.l              #$000D1281,D0
  746.             dc.w                $AA5D
  747.         EndM
  748.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  749.         IMPORT_CFM_FUNCTION SMPEnumerateBlocks
  750.     ENDIF
  751.  
  752. ;
  753. ; pascal OSErr SMPDrawMailer(WindowPtr window)
  754. ;
  755.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  756.         Macro
  757.         _SMPDrawMailer
  758.             move.l              #$00021269,D0
  759.             dc.w                $AA5D
  760.         EndM
  761.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  762.         IMPORT_CFM_FUNCTION SMPDrawMailer
  763.     ENDIF
  764.  
  765.  
  766. ;
  767. ; pascal OSErr SMPSetSubject(WindowPtr window, const RString *text)
  768. ;
  769.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  770.         Macro
  771.         _SMPSetSubject
  772.             move.l              #$0004126B,D0
  773.             dc.w                $AA5D
  774.         EndM
  775.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  776.         IMPORT_CFM_FUNCTION SMPSetSubject
  777.     ENDIF
  778.  
  779. ;
  780. ; pascal OSErr SMPSetFromIdentity(WindowPtr window, AuthIdentity from)
  781. ;
  782.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  783.         Macro
  784.         _SMPSetFromIdentity
  785.             move.l              #$0004126C,D0
  786.             dc.w                $AA5D
  787.         EndM
  788.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  789.         IMPORT_CFM_FUNCTION SMPSetFromIdentity
  790.     ENDIF
  791.  
  792. ;
  793. ; pascal OSErr SMPAddAddress(WindowPtr window, SMPAddressType addrType, OCEPackedRecipient *address)
  794. ;
  795.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  796.         Macro
  797.         _SMPAddAddress
  798.             move.l              #$0005126D,D0
  799.             dc.w                $AA5D
  800.         EndM
  801.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  802.         IMPORT_CFM_FUNCTION SMPAddAddress
  803.     ENDIF
  804.  
  805. ;
  806. ; pascal OSErr SMPAddAttachment(WindowPtr window, const FSSpec *attachment)
  807. ;
  808.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  809.         Macro
  810.         _SMPAddAttachment
  811.             move.l              #$0004126E,D0
  812.             dc.w                $AA5D
  813.         EndM
  814.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  815.         IMPORT_CFM_FUNCTION SMPAddAttachment
  816.     ENDIF
  817.  
  818. ;
  819. ; pascal OSErr SMPAttachDialog(WindowPtr window)
  820. ;
  821.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  822.         Macro
  823.         _SMPAttachDialog
  824.             move.l              #$00021276,D0
  825.             dc.w                $AA5D
  826.         EndM
  827.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  828.         IMPORT_CFM_FUNCTION SMPAttachDialog
  829.     ENDIF
  830.  
  831.  
  832. ;
  833. ; pascal OSErr SMPExpandOrContract(WindowPtr window, Boolean expand)
  834. ;
  835.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  836.         Macro
  837.         _SMPExpandOrContract
  838.             move.l              #$00031272,D0
  839.             dc.w                $AA5D
  840.         EndM
  841.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  842.         IMPORT_CFM_FUNCTION SMPExpandOrContract
  843.     ENDIF
  844.  
  845.  
  846. ;
  847. ; pascal OSErr SMPMoveMailer(WindowPtr window, short dh, short dv)
  848. ;
  849.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  850.         Macro
  851.         _SMPMoveMailer
  852.             move.l              #$0004126A,D0
  853.             dc.w                $AA5D
  854.         EndM
  855.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  856.         IMPORT_CFM_FUNCTION SMPMoveMailer
  857.     ENDIF
  858.  
  859.  
  860. ;
  861. ; pascal OSErr SMPBecomeTarget(WindowPtr window, Boolean becomeTarget, SMPMailerComponent whichField)
  862. ;
  863.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  864.         Macro
  865.         _SMPBecomeTarget
  866.             move.l              #$00051273,D0
  867.             dc.w                $AA5D
  868.         EndM
  869.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  870.         IMPORT_CFM_FUNCTION SMPBecomeTarget
  871.     ENDIF
  872.  
  873.  
  874. ;
  875. ; pascal OSErr SMPGetComponentSize(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, unsigned short *size)
  876. ;
  877.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  878.         Macro
  879.         _SMPGetComponentSize
  880.             move.l              #$00071277,D0
  881.             dc.w                $AA5D
  882.         EndM
  883.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  884.         IMPORT_CFM_FUNCTION SMPGetComponentSize
  885.     ENDIF
  886.  
  887.  
  888. ;
  889. ; pascal OSErr SMPGetComponentInfo(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, void *buffer)
  890. ;
  891.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  892.         Macro
  893.         _SMPGetComponentInfo
  894.             move.l              #$00071278,D0
  895.             dc.w                $AA5D
  896.         EndM
  897.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  898.         IMPORT_CFM_FUNCTION SMPGetComponentInfo
  899.     ENDIF
  900.  
  901.  
  902. ;
  903. ; pascal OSErr SMPGetListItemInfo(WindowPtr window, unsigned short whichMailer, SMPMailerComponent whichField, void *buffer, unsigned long bufferLength, unsigned short startItem, unsigned short *itemCount, unsigned short *nextItem, Boolean *more)
  904. ;
  905.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  906.         Macro
  907.         _SMPGetListItemInfo
  908.             move.l              #$00101279,D0
  909.             dc.w                $AA5D
  910.         EndM
  911.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  912.         IMPORT_CFM_FUNCTION SMPGetListItemInfo
  913.     ENDIF
  914.  
  915. ;
  916. ; pascal OSErr SMPImage(WindowPtr window, SMPDrawImageUPP drawImageProc, long imageRefCon, Boolean supportsColor)
  917. ;
  918.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  919.         Macro
  920.         _SMPImage
  921.             move.l              #$00071282,D0
  922.             dc.w                $AA5D
  923.         EndM
  924.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  925.         IMPORT_CFM_FUNCTION SMPImage
  926.     ENDIF
  927.  
  928. ;
  929. ; pascal OSErr SMPGetNextLetter(OSType *typesList, short numTypes, LetterDescriptor *adjacentLetter)
  930. ;
  931.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  932.         Macro
  933.         _SMPGetNextLetter
  934.             move.l              #$00051286,D0
  935.             dc.w                $AA5D
  936.         EndM
  937.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  938.         IMPORT_CFM_FUNCTION SMPGetNextLetter
  939.     ENDIF
  940.  
  941. ;
  942. ; pascal OSErr SMPGetLetterInfo(LetterSpec *mailboxSpec, SMPLetterInfo *info)
  943. ;
  944.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  945.         Macro
  946.         _SMPGetLetterInfo
  947.             move.l              #$0004128A,D0
  948.             dc.w                $AA5D
  949.         EndM
  950.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  951.         IMPORT_CFM_FUNCTION SMPGetLetterInfo
  952.     ENDIF
  953.  
  954.  
  955.  
  956.     ENDIF ; __OCESTANDARDMAIL__ 
  957.  
  958.